package me.youline.dataServer.service.support.sms;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import me.youline.dataServer.exception.SmsVerificationCodeSendException;

@Service
public class CompositeSmsVerificationService {
	
	@Autowired
	private CloopenSmsVerificationService cloopenSmsVerificationService;
	
	public boolean isValidCode(String code, String zone, String phone){
		return cloopenSmsVerificationService.isValidCode(code, phone);
	}
	
	public void sendCode(String phone) throws SmsVerificationCodeSendException{
		cloopenSmsVerificationService.sendSms(phone);
	}

}
